import { configureStore, createSlice } from '@reduxjs/toolkit';
const counterSlice = createSlice({
  name: 'counter',
  initialState: {
    isShowTips: false,
    tipsText: '点击屏幕掉落金币，吃到金币加分，吃到pua结束。'
  },
  reducers: {
    setIsShowTips(state, action) {
      state.isShowTips = action.payload
      return state
    }
  }
})
export const { setIsShowTips } = counterSlice.actions

export const counterReducer = counterSlice.reducer

export const store = configureStore({
  reducer: counterReducer
})